home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Compile Problems < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Compile Problems
  2. Sent:        5/25/96 1:59 PM
  3. Received:    5/28/96 8:25 AM
  4. From:        Jim Lloyd, jim@melongem.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 12:12 PM 5/24/96, Hutchings Software Development wrote:
  9. >Hi,
  10. >
  11. >Here's what I'm trying to do. Basically, using FW_CEditText as a model
  12. >(but not a superclass), I'm trying to write a general scrolling,
  13. >styled text view in one class. It needs to be both a notifier and a
  14. >receiver.
  15. >
  16. >I copied the following out of the CW Message Box.
  17. >
  18. >
  19. >Error   : illegal use of abstract class
  20. >('FW_MReceiver::HandleNotification(Environment*,constFW_CNotification&)')
  21.  
  22. I believe that this first error message contains all the information
  23. necessary to solve the problem.  FW_MReceiver declares the method
  24. HandleNotification to be pure virtual, and it appears that your subclass
  25. didn't override the method.
  26.  
  27. Admittedly, the next part of the error is gobbledygook:
  28.  
  29. >StyleEditView.cpp line 894   FW_CPrivWatcher(FW_PrivGetDeleteProc((const
  30. >CStyleEditView*)0))) CStyleEditView(ev), FW_PrivWatcher_Pop() )
  31.  
  32. This is a partial expansion from FW_NEW.  If anybody is *really* curious, I
  33. could explain what FW_NEW is doing.
  34. Note that unless you have a good reason not to, you should consider using
  35. native exceptions, then you won't have to deal with the RTTI and Exception
  36. related macros.
  37.  
  38. Jim Lloyd
  39.  
  40.